<template>
  <el-row :gutter="12">
    <el-col :span="8">
      <el-card shadow="always"> 
        <div>人员芯片导入模板</div>
        <el-button @click="downloadTpl2">下载模板</el-button>
        <el-upload
            class="upload-demo"
            :action="`${baseURL}/phyrunning/bind/import`"
            :on-success="uploadSuccess"
            :show-file-list="true"
            :file-list='fileList'
            
          >
            <div class="text" size="small" type="primary" >上传</div>
          </el-upload>
       </el-card>
    </el-col>
    <el-col :span="8">
      <el-card shadow="hover"> Hover </el-card>
    </el-col>
    <el-col :span="8">
      <el-card shadow="never"> Never </el-card>
    </el-col>
  </el-row>
</template>

<script setup lang="ts">
import { reactive, ref } from 'vue';
import {download} from '@/utils/download'
const fileList:Array<any> = []
const baseURL = import.meta.env.VITE_APP_NODE_ENV=='development'?import.meta.env.VITE_APP_BASE_API:import.meta.env.VITE_APP_NODE_URL
function downloadTpl2(){
  let params = {
     planId: '',
      };
      download('/phyrunning/bind/import/template',params)
}
function uploadSuccess(){

}
</script>

<style scoped>

</style>
